//////////////////////////////
.org				0x080A1726
lsl	r0,	r0,	#0x1A	@Masks STR statistic loaded from Resume data
lsr	r0,	r0,	#0x1B	@so that it will be AND 0x1F

Called by:

.org				0x080A12A2
bl				0x080A16C0

Arg0: Address of 0x34 byte struct of data to load
Arg1: Address of 0x48 byte struct to fill

Hack to fix Resume issue, part 1:

.org				0x080A1162
@-------------------------------@F02A
@-------------------------------@FBE3
bl				0x080CB92C

.org				0x080CB92C
push	{r0, r1}		@
mov	r6,	#0x04		@
ldr	r1,	[r0,	#0x04]	@
add	r0,	#0x14		@
add	r1,	#0x0C		@
SUB_LOOP:
ldsb	r2,	[r1,	r6]	@
ldsb	r3,	[r0,	r6]	@
sub	r3,	r3,	r2	@
strb	r3,	[r0,	r6]	@
sub	r6,	#0x01		@
bpl				SUB_LOOP
pop	{r0, r1}		@
push	{r0, r1, lr}		@
bl				0x080A13EC
mov	r6,	#0x04		@
pop	{r0, r1}		@
push	{r0, r1}		@
ldr	r1,	[r0,	#0x04]	@
add	r0,	#0x14		@
add	r1,	#0x0C		@
ADD_LOOP:
ldsb	r2,	[r1,	r6]	@
ldsb	r3,	[r0,	r6]	@
add	r3,	r3,	r2	@
strb	r3,	[r0,	r6]	@
sub	r6,	#0x01		@
bpl				ADD_LOOP
pop	{r0, r1}		@
mov	r6,	r0		@
pop	{pc}			@
.org				0x080CB968

Hack to fix Resume issue, part 2:

.org				0x080A12A6
@-------------------------------@F02A
@-------------------------------@FB5F
bl				0x080CB968

.org				0x080CB968
add	r5,	#0x48		@
add	r4,	#0x1		@
push	{r0, r1, r6}		@
sub	r1,	#0x46		@
mov	r6,	#0x04		@
ldr	r0,	[r1,	#0x04]	@
add	r1,	#0x14		@
add	r0,	#0x0C		@
ADD_LOOP:
ldsb	r2,	[r0,	r6]	@
ldsb	r3,	[r1,	r6]	@
add	r3,	r3,	r2	@
strb	r3,	[r1,	r6]	@
sub	r6,	#0x01		@
bpl				ADD_LOOP
pop	{r0, r1, r6}		@
bx	lr			@
.org				0x080CB988

Both parts tested and working!
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

//////////////////////////////
Hack to fix Link Arena stat loading issue, part 2:

.org				0x080A0950
@-------------------------------@F02B
@-------------------------------@F820
bl				0x080CB994

.org				0x080CB994
ldr	r1,			Char_Base
push	{r3, lr}		@
mov	r3,	#0x2C		@
ADD_LOOP:
add	r1,	#0x46		@
bl				0x080CB96C - 0x080CB994
add	r1,	#0x02		@
sub	r3,	#0x1		@
bpl				ADD_LOOP
mov	r1,	#0xF3		@
lsl	r1,	r1,	#0x3	@
pop	{r3, pc}		@
.align				2
Char_Base:
.long				0x0202BD50
.org				0x080CB9B0

Hack to fix Link Arena stat loading issue, part 1:

.org				0x080A0856
@-------------------------------@F02B
@-------------------------------@F8AB
bl				0x080CB9B0

.org				0x080CB9B0
push	{r0, r1, r6, lr}	@
mov	r6,	#0x04		@
ldr	r1,	[r0,	#0x04]	@
add	r0,	#0x14		@
add	r1,	#0x0C		@
SUB_LOOP:
ldsb	r2,	[r1,	r6]	@
ldsb	r3,	[r0,	r6]	@
sub	r3,	r3,	r2	@
strb	r3,	[r0,	r6]	@
sub	r6,	#0x01		@
bpl				SUB_LOOP
pop	{r0, r1}		@
bl				0x080A0A60 - 0x080CB9B0
pop	{r6}			@
push	{r6}			@
mov	r0,	r6		@
mov	r1,	r10		@
add	r0,	r0,	r1	@
mov	r6,	#0x4		@
ldr	r1,	[r0,	#0x04]	@
add	r0,	#0x14		@
add	r1,	#0x0C		@
ADD_LOOP:
ldsb	r2,	[r1,	r6]	@
ldsb	r3,	[r0,	r6]	@
add	r3,	r3,	r2	@
strb	r3,	[r0,	r6]	@
sub	r6,	#0x01		@
bpl				ADD_LOOP
pop	{r6, pc}		@
.org				0x080CB9EC

Both parts tested and working!

But...this only works in the character select menu...
the stats are still loaded wrong once the team is loaded into the LA! D:

This fixes the storing part of the above issue:

.org				0x080A1E5C
@-------------------------------@F029
@-------------------------------@FDA8
bl				0x080CB9B0

And the loading part:

.org				0x08040492
@-------------------------------@F08B
@-------------------------------@FAAB
bl				0x080CB9EC

.org				0x080CB9EC
push	{lr}			@B500
mov	r1,	r5		@1C29
@-------------------------------@F7FF
@-------------------------------@FFD1
bl				0x080CB996 - 0x080CB9EC
mov	r7,	#0x0		@2700
add	r2,	r6,	#0x1	@1C72
pop	{pc}			@BD00
.org				0x080CB9FA

Both tested and working!

Wait! For the unit list:

.org				0x0803E8D6
@-------------------------------@F08D
@-------------------------------@F891
bl				0x080CB9FC

.org				0x080CB9FC
add	sp,	#0x14		@B005
@-------------------------------@4902
ldr	r1,			Char_Base
@-------------------------------@F7FF
@-------------------------------@FFC9
bl				0x080CB996 - 0x080CB9FC
pop	{r4, pc}		@BD10
.align				2
Char_Base:			
.long				0x0202BD50
.org				0x080CBA0C

Tested and working.

Ugh, nasty bugfix:

.org				0x080CB99A
@-------------------------------@E037
b				0x080CBA0C

.org				0x080CBA0C
add	r1,	#0x46		@3146
push	{r3}			@B408
@-------------------------------@F7FF
@-------------------------------@FFAC
bl				0x080CB96C - 0x080CBA0C
pop	{r3}			@BC08
@-------------------------------@E7C3
b				0x080CB9A0 - 0x080CBA0C
.org				0x080CBA18

Everything's fixed now. I hope.
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
